﻿#region Using namespaces

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows.Data;

using BOL.Apps.GeneNetworkBrowser.Controls;

#endregion

namespace BOL.Apps.GeneNetworkBrowser.Converters
{
    public class MainWindowTitleConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value != null)
                return String.Format("{0} - Gene Network Browser", value);

            return "Gene Network Browser";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return null;
        }
    } 
}
